<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		*{
			padding: 0;
			margin: 0;
			list-style: none;
		}
		ul{
			width: 500px;
			height: 400px;
			border: 1px solid royalblue;
			margin: 50px auto;
		}
		ul li{
			width: 100px;
			height: 50px;
			background-color: royalblue;
			margin-top: 10px;
			color: white;
			/* 设置过渡效果 */
			transition: margin-left 2s 0s;
		}
		ul:hover li{
			margin-left: 500px;
		}
		ul:hover li:first-child{
			transition-timing-function: linear;
		}
		ul:hover li:nth-child(2){
			transition-timing-function: ease;
		}
		ul:hover li:nth-child(3){
			transition-timing-function: ease-in;
		}
		ul:hover li:nth-child(4){
			transition-timing-function: ease-out;
		}
		ul:hover li:last-child{
			transition-timing-function: ease-in-out;
		}
	</style>
</head>
<body>
	<ul>
		<li>linear</li>
		<li>ease</li>
		<li>ease-in</li>
		<li>ease-out</li>
		<li>ease-in-out</li>
	</ul>
</body>
</html>